<?
	$nav = array("Home" => "", "Contact" => "contact/", "edit" => "#");

	$tpl->assign("dsfm_nav", $nav);

	$form = new Form( array(
		"id" => array(
			"title" => "ID",
			"type" => "hidden"
		),

		"topic" => array(
			"type" => "text",
			"width" => 200
		),

		"name" => array(
			"type" => "text",
			"width" => 200
		),

		"message" => array(
			"type" => "textarea",
			"width" => 300,
			"height" => 100
		),

		"email" => array(
			"type" => "text",
			"width" => 200
		),

		"tel" => array(
			"type" => "text",
			"width" => 200
		)
	));

    $sql = "SELECT * FROM contact WHERE id = $id";
	$rss = $db->query($sql);

	$data = new Data($rss);
	$form->add_data($data->fetch_unique());

	$form->add_action("update.php");

    $form->rain_display($tpl, "form");
?>